package com.flyco.modules.stm.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 导购业绩
 * @Author: flyco
 * @Date:   2021-01-06
 * @Version: V1.0
 */
@Data
@TableName("stm_kpi_sales")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="stm_kpi_sales对象", description="导购业绩")
public class StmKpiSales {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**店铺id*/
	@Excel(name = "店铺", width = 20, dictTable ="stm_store_info",dicText = "name",dicCode = "store_id" )
	@ApiModelProperty(value = "店铺id")
	@Dict(dictTable ="stm_store_info",dicText = "name",dicCode = "store_id")
	private Long storeId;
	/**导购id*/
	@Excel(name = "导购id", width = 15)
    @ApiModelProperty(value = "导购id")
	private Long salesId;
	/**拉新数*/
	@Excel(name = "拉新数", width = 15)
    @ApiModelProperty(value = "拉新数")
	private Integer consumerCount;
	/**主推业绩金额*/
	@Excel(name = "主推业绩金额", width = 15)
    @ApiModelProperty(value = "主推业绩金额")
	private java.math.BigDecimal recommandAmount;
	/**业绩金额*/
	@Excel(name = "业绩金额", width = 15)
    @ApiModelProperty(value = "业绩金额")
	private java.math.BigDecimal orderAmount;
	/**生效时间*/
	@Excel(name = "生效时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "生效时间")
	private Date startTime;
	/**失效时间*/
	@Excel(name = "失效时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "失效时间")
	private Date endTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;

	/**导购名称*/
	@TableField(exist = false)
	private String salesId_dictText;

}
